From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 26 May 2006 12:53:49 +0000 (+0100) Subject: Remove bogus inline asm of unused function memchr(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16025^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=14602c7ac9265f689b7435c1df93ab2256e7c65d;p=xen.git Remove bogus inline asm of unused function memchr(). Signed-off-by: Keir Fraser --- diff --git a/xen/include/asm-x86/string.h b/xen/include/asm-x86/string.h index 0003d87425..3785004f9e 100644 --- a/xen/include/asm-x86/string.h +++ b/xen/include/asm-x86/string.h @@ -112,22 +112,6 @@ extern void *memmove(void *dest, const void *src, size_t n); #define __HAVE_ARCH_MEMCMP #define memcmp __builtin_memcmp -#define __HAVE_ARCH_MEMCHR -static inline void *memchr(const void *cs, int c, size_t count) -{ - long d0; - register void *__res; - if ( count == 0 ) - return NULL; - __asm__ __volatile__ ( - " repne ; scasb\n" - " je 1f \n" - " mov $1,%0 \n" - "1: dec %0 \n" - : "=D" (__res), "=&c" (d0) : "a" (c), "0" (cs), "1" (count) ); - return __res; -} - static inline void *__memset_generic(void *s, char c, size_t count) { long d0, d1;